﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.SystemManage.UserList" Title="医用耗材管理系统" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

 <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../../js/popup.js" type="text/javascript"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        
        //获取产品名
        $('#ctl00_cphcenter_ddlExp_Name_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlExp_Name_flexselect').attr('value');
                    if(tt!="")
            {
            $("#ctl00_cphcenter_ddlExpName2").setSelectedText(tt);
            
            //得到选中索引
            //var index=$("#ctl00_cphcenter_ddlExpName2").getSelectedIndex();
            
            //$("#ctl00_cphcenter_ddlExpName2")[0].options(index).selected = true;
            
            //触发onchang事件
            $("#ctl00_cphcenter_ddlExpName2").change();
        }
        $('#ctl00_cphcenter_hdfExp_Name').attr('value',tt);
        })
        
        /*测试COOKIES*/
        if($.cookie('popupStatus')==1)
        {
            disablePopup();
            centerPopup();
            loadPopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="right-color">系统设置—用户列表</td>
        <td width="16%" align="right">
        <input type="button" value="添加用户" id="ButtonSearch" onserverclick="btnAdd_Click" runat="server" class="longbutton" />
        <%--<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="添加用户" CssClass="longbutton" Width="90" Height="25" style="cursor:pointer;" />--%></td>
      </tr>
</table>
 <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
  <tr>
    <td class="bor bor-bg">科室列表查询条件</td></tr>
<tr>
    <td class="bor">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="t1">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right">用户姓名：</td>
    <td><asp:TextBox ID="txtUserName" runat="server"  Width="150" MaxLength="8"></asp:TextBox>
       </td>
    <td align="right">科室名称：</td>
    <td><asp:DropDownList ID="ddlDept" runat="server"  Width="150">
        </asp:DropDownList></td>
    <td align="right">用户角色：</td>
    <td>
        <asp:DropDownList ID="ddlRole" runat="server" >
        </asp:DropDownList></td>
     <td><asp:Button ID="btnSelect" runat="server" Text="查询" OnClick="btnSelect_Click" CssClass="button" Width="57" Height="25" style="cursor:pointer;" /></td>
  </tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
<tr>
<td class="bor bor-bg">用户信息列表</td>
</tr>
  <tr>
    <td class="bor" style="padding:13px;">
    <asp:GridView ID="grdOutList" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="Black" AllowPaging="True" DataKeyNames="USER_ID"  Width="100%"  OnSelectedIndexChanged="grdOutList_SelectedIndexChanged"  OnPageIndexChanging="grdOutList_PageIndexChanging" OnRowDataBound="grdOutList_RowDataBound" >
      <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
      <RowStyle CssClass="gv-first-line"/>
       <EmptyDataTemplate>
            <table width="100%" height="100">
                
                <tr>
                    <td align="center" class="jg">
                        对不起，没有找到任何相关记录
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
                  <Columns>
                      <asp:BoundField DataField="STORE_ID" HeaderText="库房代码" />
                      <asp:BoundField DataField="USER_ID" HeaderText="用户ID" />
                      <asp:BoundField DataField="DB_USER" HeaderText="用户名" />
                      <asp:BoundField DataField="USER_NAME" HeaderText="用户姓名" />
                      <asp:BoundField DataField="DEPT_NAME" HeaderText="科室名称" />
                      <asp:BoundField HeaderText="用户角色" />
                      <asp:TemplateField HeaderText="修改">
                      <ItemTemplate>
            <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td height="25" align="center" class="button" style="padding-top:2px;"> 
                        <a href='<%#"UserAdd.aspx?USER_ID="+Eval( "USER_ID")%>'>修改</a>  
                    </td>
                 </tr>
             </table>                   
                        </ItemTemplate>
                      </asp:TemplateField>
                      
                  </Columns>
           <PagerStyle CssClass="fy" />
           <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
           <HeaderStyle  CssClass="gv-head" />
           <EditRowStyle BackColor="Black" />
           <AlternatingRowStyle BackColor="White" />
           <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
              </asp:GridView>  
                
    </td>
  </tr>
</table>

</asp:Content>
